<?php
  namespace app\index\controller;
  class Base extends \think\Controller{
     protected $redis;
     function __construct(){
	    parent::__construct();
        $this->redis=new \redis();
	      $this->redis->connect('localhost',6379);
	      $this->redis->auth('1234');  
		    $this->redis->select(1);
     } 
  }
?>